package com.yxcz.service;

import java.util.ArrayList;

import com.yxcz.exception.FormsAuthenticationFailureException;
import com.yxcz.model.UpdateUserForm;
import com.yxcz.model.UpdateUserInfoForm;
import com.yxcz.model.User;

public interface UserService {
	
	/**
	 * 管理用户服务
	 * @throws FormsAuthenticationFailureException 
	 * 
	 */
	public void updateUserInfo(UpdateUserInfoForm form);
	public void updateUserPhoto(int id, String url);
	void updatePassword(User user, String password);
	ArrayList<User> list();
	ArrayList<User> listByKeyWord(String keyword);
	User find(Integer id);
	public void delete(Integer id);
	public void updateUser(UpdateUserForm form);
	void add(String accountName, String password) throws Exception;
}
